package com.xr.miniprogram.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xr.miniprogram.domain.MiniProgramOrder;
import com.xr.miniprogram.domain.vo.MiniProgramOrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MiniProgramOrderMapper extends BaseMapper<MiniProgramOrder> {


    /**
     * 根据id查询orderVO
     *
     * @param orderId order主键
     * @return order
     */
    public MiniProgramOrderVO selectMiniProgramOrderByOrderId(Long orderId);

    /**
     * 查询order列表
     *
     * @param miniProgramOrder order
     * @return order集合
     */
    public IPage<MiniProgramOrderVO> selectMiniProgramOrderList(Page<MiniProgramOrderVO> page, @Param("mpo") MiniProgramOrder miniProgramOrder, @Param("statusCode") Long statusCode, @Param("uStatusId") Long uStatusId, @Param("staffId") Long staffId);
}

